<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/common/common.jsp" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> 
  <head>
    <base href="<%=basePath%>" />
    <title>Temperature Spots Data List</title>
    <script type="text/javascript">
		var path = "<%=basePath%>";
	</script>
	<meta http-equiv="pragma" content="no-cache" />
	<meta http-equiv="cache-control" content="no-cache" />
	<meta http-equiv="expires" content="0" />    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
	<meta http-equiv="description" content="This is my page" />
	<link rel="stylesheet" type="text/css" href="<%=basePath%>beshs/css/content-specialtable1.css" />
	<script type="text/javascript" src="<%=basePath%>resources/jquery/jquery-1.7.2.min.js"></script>
	<!-- 页面特效 -->
	<jsp:include page="/beshs/res-refer/page-effect-reference.jsp" />
	<!-- 系统通用资源 -->
	<jsp:include page="/resources/resource-refer/common-resource-reference.jsp" />
	<!-- 用户访问菜单路径 -->
	<jsp:include page="/resources/usertrace/common-uservisit-reference.jsp" />
	<!-- 公共参数 -->
	<script type="text/javascript">
		//集中器信息
		var concentratorNo = "<s:property value='tempPointStatis.concentratorNo' />";
		//抄表时间
		var recordTime = "<s:property value='tempPointStatis.recordTime' />";
	</script>
  </head>
  <script type="text/javascript">
  	/** 加载单个温度点数据24小时线性图 **/
  	function loadTpDataSingleChart(tempPointDataUID) {
  		//选项卡效果
  		var ulTab = $(parent.window.document).find("ul[class='nav_menu']")[0];
  		$(ulTab).children("li").last().addClass("selected").siblings().removeClass();
  		$(parent.window.document).find("div[class='ct']").last().show().siblings().hide();
  		//加载线性图页面
  		window.frames["tempPointDataChartMgr"].location = path + "beshs/temperaturePointDataGatherAction!queryTpDataSingleChart.do?tempPointDataUID="+tempPointDataUID+"&date="+new Date();
  	}
  </script>
  <body>
  	<div class="content_all">
	  	<div class="search_table_all">
		    <table class="search_table" cellspacing="0" cellpadding="0">
		    	<thead>
			        <tr id="ex_tr">
			          <th>
			          	<div id="ex-tr-div">
			          		<div id="ex-tr-uphalfDiv">Time</div>
			          		<div id="ex-tr-bottomhalfDiv">Temperature Spots</div>
			          	</div>
			          </th>
			          <th>0:00</th>
			          <th>1:00</th>
			          <th>2:00</th>
			          <th>3:00</th>
			          <th>4:00</th>
			          <th>5:00</th>
			          <th>6:00</th>
			          <th>7:00</th>
			          <th>8:00</th>
			          <th>9:00</th>
			          <th>10:00</th>
			          <th>11:00</th>
			          <th>12:00</th>
			          <th>13:00</th>
			          <th>14:00</th>
			          <th>15:00</th>
			          <th>16:00</th>
			          <th>17:00</th>
			          <th>18:00</th>
			          <th>19:00</th>
			          <th>20:00</th>
			          <th>21:00</th>
			          <th>22:00</th>
			          <th>23:00</th>
			          <th>Operation</th>
			      	</tr>
		      	</thead>
		      	<s:iterator value="tempPointDataList" var="tempPointData" status="status">
		      		<!-- GPRS等故障数据的系统修正 -->
					<s:if test="#tempPointData.uploadStatus == 1">
	      				<tr style="background-color: yellow;">
	      			</s:if>
	      			<!-- 人工平滑数据 -->
	      			<s:elseif test="#tempPointData.dataType == 0">
	      				<tr style="background-color: 9AFF9A;">
	      			</s:elseif>
					<s:else>
						<tr>
					</s:else>
		      			<td>
		      				[<s:if test="referHouseNoMap==null || referHouseNoMap.get((#tempPointData.concentratorNo)+'-'+(#tempPointData.seriousNum))==null">
		      					No Information
		      				</s:if>
		      				<s:else>
		      					<s:property value="referHouseNoMap.get((#tempPointData.concentratorNo)+'-'+(#tempPointData.seriousNum))" />
		      				</s:else>]
		      				<s:property value='#tempPointData.seriousNum' />
		      			</td>
		      			<td><s:property value='#tempPointData.hour0Value' /></td>
			          	<td><s:property value='#tempPointData.hour1Value' /></td>
			          	<td><s:property value='#tempPointData.hour2Value' /></td>
			          	<td><s:property value='#tempPointData.hour3Value' /></td>
			          	<td><s:property value='#tempPointData.hour4Value' /></td>
			          	<td><s:property value='#tempPointData.hour5Value' /></td>
			          	<td><s:property value='#tempPointData.hour6Value' /></td>
			          	<td><s:property value='#tempPointData.hour7Value' /></td>
			          	<td><s:property value='#tempPointData.hour8Value' /></td>
			          	<td><s:property value='#tempPointData.hour9Value' /></td>
			          	<td><s:property value='#tempPointData.hour10Value' /></td>
			          	<td><s:property value='#tempPointData.hour11Value' /></td>
			          	<td><s:property value='#tempPointData.hour12Value' /></td>
			          	<td><s:property value='#tempPointData.hour13Value' /></td>
			          	<td><s:property value='#tempPointData.hour14Value' /></td>
			          	<td><s:property value='#tempPointData.hour15Value' /></td>
			          	<td><s:property value='#tempPointData.hour16Value' /></td>
			          	<td><s:property value='#tempPointData.hour17Value' /></td>
			          	<td><s:property value='#tempPointData.hour18Value' /></td>
			          	<td><s:property value='#tempPointData.hour19Value' /></td>
			          	<td><s:property value='#tempPointData.hour20Value' /></td>
			          	<td><s:property value='#tempPointData.hour21Value' /></td>
			          	<td><s:property value='#tempPointData.hour22Value' /></td>
			          	<td><s:property value='#tempPointData.hour23Value' /></td>
			          	<td>
			          		<a href="javascript:loadTpDataSingleChart('<s:property value='#tempPointData.id' />')">[Check]</a>
			          	</td>
			        </tr>
		      	</s:iterator>
		      	<s:if test="tempPointDataList==null">
		      		<s:bean name="org.apache.struts2.util.Counter" id="frontCounter">
	      				<s:param name="first" value="1" />
	      				<s:param name="last" value="7" />
	      				<s:iterator value="frontCounter" var="index">
	      					<tr>
				      			<td></td>
					          	<td></td>
					          	<td></td>
					          	<td></td>
					          	<td></td>
					          	<td></td>
					          	<td></td>
					          	<td></td>
					          	<td></td>
					          	<td></td>
					          	<td></td>
					          	<td></td>
					          	<td></td>
					          	<td></td>
					          	<td></td>
					          	<td></td>
					          	<td></td>
					          	<td></td>
					          	<td></td>
					          	<td></td>
					          	<td></td>
					          	<td></td>
					          	<td></td>
					          	<td></td>
					          	<td></td>
					          	<td></td>
					        </tr>
	      				</s:iterator>
	      			</s:bean>
		      	</s:if>
		      	<s:if test="tempPointDataList.size() < 7">
		      		<s:bean name="org.apache.struts2.util.Counter" id="frontCounter">
	      				<s:param name="first" value="1" />
	      				<s:param name="last" value="7 - tempPointDataList.size()" />
	      				<s:iterator value="frontCounter" var="index">
	      					<tr>
				      			<td></td>
					          	<td></td>
					          	<td></td>
					          	<td></td>
					          	<td></td>
					          	<td></td>
					          	<td></td>
					          	<td></td>
					          	<td></td>
					          	<td></td>
					          	<td></td>
					          	<td></td>
					          	<td></td>
					          	<td></td>
					          	<td></td>
					          	<td></td>
					          	<td></td>
					          	<td></td>
					          	<td></td>
					          	<td></td>
					          	<td></td>
					          	<td></td>
					          	<td></td>
					          	<td></td>
					          	<td></td>
					          	<td></td>
					        </tr>
	      				</s:iterator>
	      			</s:bean>
		      	</s:if>
		    </table>
		  </div>
		</div>
  </body>
</html>
